package com.kelong.front.validate;

//import jakarta.validation.constraints.Length;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

import lombok.Data;
import java.io.Serializable;


@Data
@ApiModel("系统登录参数")
public class Test implements Serializable {

    private static final long serialVersionUID = 1L;


    @NotEmpty(message = "账号不能为空")
    @Length(min = 2, max = 20, message = "账号或密码错误")
    @ApiModelProperty(value = "登录账号", required = true)
    private String username;

    private Integer status;


    private String startTime;


    private String endTime;

}
